import {
	request,
	requestfile
} from './request.js' //导入封装好的js文件

//登录  post请求
export const login = (data) => {
	return request({
		url: '/wx-api/login',
		method: 'post',
		data: data
	})
}

export const getMaoTaiCategory = (data) => {
	return request({
		url: '/maotai/getcategory',
		method: 'post'
	})
}


export const saveMaoTaInfo = (data) => {
	return request({
		url: '/maotai/save',
		data: data,
		method: 'post'
	})
}

export const listMaoTaInfo = (data) => {
	return request({
		url: '/maotai/list',
		data: data,
		method: 'post'
	})
}

export const uploadImg = (data) => {
	return requestfile({
		url: '/file/uploadimg',
		imgurl: data
	})
}